package com.lsm.sm.service;

import com.lsm.sm.entity.User;

public interface UserService {
	/*
	 * 若用用户名不存在，则不允许注册
	 */
	public void register( User user ) throws Exception; 
	
	public User login( User user ) throws Exception;
	
	public User checkExist( User user )throws Exception;
	
	public User getUser() throws Exception;
	
	public void logout();
	
	/*
	 * 1. fetch the user from the database;
	 * 2. compare the persistent user to the transient one
	 * 3. update the available field
	 */
	public void update( User user ) throws Exception;
}
